<?php namespace Home\Controller; 

use Hdphp\Controller\Controller;

//测试控制器
class CommonController extends Controller{
	
	public function __init(){
		$this->auth();
	}
	
	public function auth(){
		if(!isset($_SESSION['uid']) || !isset($_SESSION['username'])){
			go(U('Login/index'));
		}
	}
	
}
